Optimal. Leaf size=72 \[ \frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3664, 277, 217, 206} \[ \frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a+b \sec ^2(e+f x)-b}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a+b \sec ^2(e+f x)-b}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 217
Rule 277
Rule 3664
Rubi steps
\begin {align*} \int \sin (e+f x) \sqrt {a+b \tan ^2(e+f x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\sqrt {a-b+b x^2}}{x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{f}+\frac {b \operatorname {Subst}\left (\int \frac {1}{\sqrt {a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{f}+\frac {b \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{f}\\ &=\frac {\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b+b \sec ^2(e+f x)}}\right )}{f}-\frac {\cos (e+f x) \sqrt {a-b+b \sec ^2(e+f x)}}{f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.56, size = 140, normalized size = 1.94 \[ -\frac {\sin (2 (e+f x)) \csc (e+f x) \sqrt {\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)} \left (\sqrt {2} \sqrt {(a-b) \cos (2 (e+f x))+a+b}-2 \sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {(a-b) \cos (2 (e+f x))+a+b}}{\sqrt {2} \sqrt {b}}\right )\right )}{4 f \sqrt {(a-b) \cos (2 (e+f x))+a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.70, size = 203, normalized size = 2.82 \[ \left [-\frac {2 \, \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b} \log \left (-\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + 2 \, \sqrt {b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right )}{2 \, f}, -\frac {\sqrt {-b} \arctan \left (\frac {\sqrt {-b} \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) + \sqrt {\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{f}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.39, size = 144, normalized size = 2.00 \[ \frac {\sqrt {\frac {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}{\cos \left (f x +e \right )^{2}}}\, \cos \left (f x +e \right ) \left (\sqrt {b}\, \ln \left (\frac {2 \sqrt {b}\, \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}+2 b}{\cos \left (f x +e \right )}\right )-\sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}\right )}{f \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )-\left (\cos ^{2}\left (f x +e \right )\right ) b +b}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 97, normalized size = 1.35 \[ -\frac {2 \, \sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b} \log \left (\frac {\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) - \sqrt {b}}{\sqrt {a - b + \frac {b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + \sqrt {b}}\right )}{2 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sin \left (e+f\,x\right )\,\sqrt {b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a + b \tan ^{2}{\left (e + f x \right )}} \sin {\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________